(isearch-search): In the condition-case handler for
authorGerd Moellmann <gerd@gnu.org>
Thu, 11 Jan 2001 15:30:22 +0000 (15:30 +0000)
committerGerd Moellmann <gerd@gnu.org>
Thu, 11 Jan 2001 15:30:22 +0000 (15:30 +0000)
`error', set isearch-invalid-regexp to the whole error message.

lisp/isearch.el

index 997cdc6aac9764fcb40050f608a8b5f8196a6158..251c85cf1e9e626858fcc85f2da95bac720caa12 100644 (file)
@@ -1583,8 +1583,8 @@ If there is no completion possible, say so and continue searching."
          isearch-invalid-regexp)
         (setq isearch-invalid-regexp "incomplete input")))
     (error
-     ;; stack overflow in regexp search.
-     (setq isearch-invalid-regexp (car (cdr lossage)))))
+     ;; Stack overflow in regexp search, for instance.
+     (setq isearch-invalid-regexp (format "%s" lossage))))
 
   (if isearch-success
       nil